Exporting keys
- Use following command to export the key to a file
gpg -o ~/secret-keys.asc --export-secret-key <key>
- Use following to list all the keys available
gpg --list-secret-keys
- Importing a key
gpg --import <path to key>
gpg -o ~/secret-keys.asc --export-secret-key <key>
gpg --list-secret-keys
gpg --import <path to key>